package com.fjh.roadmannage.ui

import android.content.Intent
import com.cxz.kotlin.baselibs.base.BaseMvpActivity
import com.cxz.kotlin.baselibs.ext.rxClickSimple
import com.fjh.roadmannage.bean.User
import com.fjh.roadmannage.databinding.ActivityMainBinding

class MainActivity :
    BaseMvpActivity<ActivityMainBinding, MainContract.MainView, MainContract.MainPresenter>(),
    LoginContract.LoginView {
    private val loginPresenter: LoginContract.LoginPresenter = LoginContract.LoginPresenter();
    override fun initData() {
        super.initData()
        loginPresenter.attachView(this)
    }

    override fun setListeners() {
        binding.textView.rxClickSimple { startActivity(Intent(this, LoginActivity::class.java)) }
    }

    override fun start() {

    }

    override fun createPresenter(): MainContract.MainPresenter = MainContract.MainPresenter()
    override fun getLoginParam(): Pair<String, String> {
        TODO("Not yet implemented")
    }

    override fun loginSuc(user: User) {
        TODO("Not yet implemented")
    }

}